<?php
/**
 * CustomerController
 * 
 * @author
 * @version 
 */
include './config.inc.php';
include './uc_client/client.php';   
        
require_once 'Zend/Controller/Action.php';
class News_CustomerController extends Zend_Controller_Action
{
    /**
     * The default action - show the home page
     */
    public function indexAction ()
    {    
        $r = uc_user_register('126', '123456', '111@qq.com');
        Zend_Debug::dump($r);
    }
    
    public function authenticateAction()
    {
         
        $request = $this->getRequest();
        if (!$request->isPost()) {
            return $this->_helper->redirector('');
        }
        
        Zend_Debug::dump(uc_user_login($_POST['username'], $_POST['password']));
    }
}

